﻿<!--
  
   NewItemWindow.xaml
  
   Copyright (c) 2007 Mike Strobel
  
   This source code is subject to the terms of the Microsoft Reciprocal License (Ms-RL).
   For details, see <http://www.opensource.org/licenses/ms-rl.html>.
  
   All other rights reserved.
  
  -->
<Window x:Class="Supremacy.Editor.NewItemWindow"
        xmlns="http://schemas.microsoft.com/netfx/2007/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="New..."
        Width="320"
        SizeToContent="Height"
        WindowStartupLocation="CenterOwner"
        WindowStyle="ThreeDBorderWindow"
        ResizeMode="NoResize">
  
  <Grid Margin="6">
    
    <Grid.ColumnDefinitions>
      <ColumnDefinition Width="Auto"/>
      <ColumnDefinition Width="*"/>
    </Grid.ColumnDefinitions>
    <Grid.RowDefinitions>
      <RowDefinition Height="Auto"/>
      <RowDefinition Height="Auto"/>
      <RowDefinition Height="Auto"/>
    </Grid.RowDefinitions>
    
    <Label Grid.Column="0"
           Grid.Row="0"
           FontWeight="Bold"
           Content="Identity:"/>
    
    <TextBox x:Name="IdentityText"
             Grid.Column="1"
             Grid.Row="0"
             CharacterCasing="Upper" />

    <Label Grid.Column="0"
           Grid.Row="1"
           FontWeight="Bold"
           Content="Name:"/>

    <TextBox x:Name="NameText"
             Grid.Column="1"
             Grid.Row="1"/>

    <StackPanel Grid.Column="0"
                Grid.ColumnSpan="2"
                Grid.Row="2"
                Margin="0,6,0,0"
                Orientation="Horizontal"
                HorizontalAlignment="Center">
      <Button x:Name="AcceptButton"
              IsDefault="True"
              Margin="0,0,3,0"
              Padding="12,2,12,2"
              Content="Accept"
              Click="AcceptButton_Click"/>
      <Button x:Name="CancelButton"
              IsCancel="True"
              Margin="3,0,0,0"
              Padding="12,2,12,2"
              Content="Cancel"/>
    </StackPanel>

  </Grid>
  
</Window>
